package com.zb.vo;

import com.zb.annotation.NumberPattern;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author WEN
 * @Date 2023/9/18 0018
 **/
@Data
@ApiModel("类型关联对象")
public class TypeRelationVo {

    @ApiModelProperty(value = "关联ID，新增不必传")
    private Long id;

    @NumberPattern(regexp = "^(1|2)$", message = "关联类型参数不合法")
    @ApiModelProperty(value = "关联类型：1-用户类型，2-网点人员类型")
    private Integer type;

    @ApiModelProperty(value = "用户类型ID/网点人员类型ID")
    private Long typeId;
}
